package com.module.app.arouter;

import com.alibaba.android.arouter.launcher.ARouter;
import com.module.app.arouter.path.HomePath;
import com.module.app.arouter.path.LauncherPath;
import com.module.app.arouter.path.LoginPath;
import com.module.app.arouter.path.MsgPath;
import com.module.app.arouter.path.MyPath;
import com.module.app.arouter.service.IHomeService;
import com.module.app.arouter.service.ILauncherService;
import com.module.app.arouter.service.ILoginService;
import com.module.app.arouter.service.IMsgService;
import com.module.app.arouter.service.IMyService;
import com.module.app.arouter.path.HomePath;
import com.module.app.arouter.path.LauncherPath;
import com.module.app.arouter.path.LoginPath;
import com.module.app.arouter.path.MsgPath;
import com.module.app.arouter.path.MyPath;
import com.module.app.arouter.service.IHomeService;
import com.module.app.arouter.service.ILauncherService;
import com.module.app.arouter.service.ILoginService;
import com.module.app.arouter.service.IMsgService;
import com.module.app.arouter.service.IMyService;

public class ArouterUtils {

    /**
     * 首页
     */
    public static IHomeService getHomeService() {
        IHomeService service = (IHomeService) ARouter.getInstance().build(HomePath.S_HOME_SERVICE).navigation();
        return service;
    }

    /**
     * 消息
     */
    public static IMsgService getMsgService() {
        IMsgService service = (IMsgService) ARouter.getInstance().build(MsgPath.S_MSG_SERVICE).navigation();
        return service;
    }

    /**
     * 我的
     */
    public static IMyService getMyService() {
        IMyService service = (IMyService) ARouter.getInstance().build(MyPath.S_MY_SERVICE).navigation();
        return service;
    }

    /**
     * Launcher
     */
    public static ILauncherService getLauncherService() {
        ILauncherService service = (ILauncherService) ARouter.getInstance().build(LauncherPath.S_LAUNChHER_SERVICE).navigation();
        return service;
    }

    /**
     * 登录
     */
    public static ILoginService getLoginService() {
        ILoginService service = (ILoginService) ARouter.getInstance().build(LoginPath.S_LOGIN_SERVICE).navigation();
        return service;
    }
}
